﻿<!DOCTYPE html>
<html ng-app="demoApp">
<head>
    <title id="Description">jqxSplitter directive for AngularJS</title>
    <link rel="stylesheet" type="text/css" href="../../jqwidgets/styles/jqx.base.css" />
    <script type="text/javascript" src="../../scripts/angular.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxsplitter.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxribbon.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxangular.js"></script>
    <style>
        html, body {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
        }
    </style>
    <script type="text/javascript" src="../../scripts/demos.js"></script>
    <script type="text/javascript">
        var demoApp = angular.module("demoApp", ["jqwidgets"]);

        demoApp.controller("demoController", function ($scope) {
            $scope.createRibbon = false;
            $scope.splitterSettings = {
                width: '100%', height: '100%', orientation: 'vertical', panels: [{ size: 200 }],
                initContent: function () {
                    $scope.createRibbon = true;
                }
            };
            $scope.ribbonSettings = { width: '100%', height: '100%', position: "left" };

        });
    </script>
</head>
<body>
    <div style="width:100%;height:100%;" ng-controller="demoController">
        <jqx-splitter style="border:none;" jqx-settings="splitterSettings">
            <div>Panel 1</div>
            <div>
                <jqx-ribbon jqx-create="createRibbon" style="border:none;" jqx-settings="ribbonSettings">
                  <ul>
                      <li>Panel1</li>
                      <li>Panel2</li>
                  </ul>
                    <div>
                      <div>Panel 2</div>
                    <div>Panel 3</div></div>
                </jqx-ribbon>
            </div>
       </jqx-splitter>
    </div>
</body>
</html>
